package model.ability;

import model.stats.StatsContainer;

/**
 * Affected by agility stat.
 * @author Zachary
 */
public class Rougue extends AbilityType {
	@Override
	public double getStatMulitiplier(StatsContainer s) {
		return (s.getAgility() / 10) + 1;
	}
	
	@Override 
	public double getSuccessProbabilityBasedOnAbilityType(StatsContainer s) {
		double probFactor = (1 / (100 - s.getAgility() + 1));
		double random = Math.max(Math.random(), .25);
		return Math.max(random + probFactor, 1) * 100;
	}
}
